<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    // 是否自动转换URL中的控制器和操作名
	//session设置
	'session'                => [
        'id'             => '',
        // SESSION_ID的提交变量,解决flash上传跨域
        'var_session_id' => '',
        // SESSION 前缀
        'prefix'         => 'api',
        // 驱动方式 支持redis memcache memcached
        'type'           => '',
        // 是否自动开启 SESSION
        'auto_start'     => true,
    ],
	//正则表达字符串
    'regular_str' => array(
        'mobile' => '/^1{1}[3-9]{1}[0-9]{9}$/',                //手机号
        'password' => '/^[_0-9a-zA-Z]{6,20}$/i',                //密码
        'verifi' => '/^[_0-9]{6}$/i',                //密码
        'name' => '/^([\xe4-\xe9][\x80-\xbf]{2}){2,4}$/',    //名字
        'identity' => '/[0-9]{17}([0-9]|X)/',                    //身份证号
        'bank_card' => '/^[1-9]{1}[0-9]{13,19}$/',                //银行卡号
        'date' => '/^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/',                //日期
        'month_date' => '/^[1-9]\d{3}-(0[1-9]|1[0-2])$/',                //年月
    ),
	
];